<template>
  <a-card :bordered="false">
    <research-kygl-hxzb-items  :teacher-info="{workNo:this.queryParam.workNo,orgCode:this.queryParam.orgCode,date:this.date}" :disabled="true"/>
  </a-card>
</template>

<script>

  import '@assets/less/TableExpand.less'

  import GYearPicker from '@views/gfxy/common/GYearPicker'
  import moment from 'moment'
  import ResearchKyglHxzbItems from '@views/gfxy/research/modules/ResearchKyglHxzbItems.vue'
  import Vue from 'vue'
  import { CURRENT_DATE } from '@/store/mutation-types'

  export default {
    name: 'ResearchKyglList',
    components: {
      ResearchKyglHxzbItems,
      GYearPicker
    },
    props: ['value','date'],
    data () {
      return {
        description: '科研管理管理页面',
        // 表头
        columns: [

          {
            title:'时间',
            align:"center",
            dataIndex: 'date'
          },
          {
            title:'教师',
            align:"center",
            dataIndex: 'workNo_dictText'
          },
          {
            title:'工作内容',
            align:"center",
            dataIndex: 'projectName'
          },
          {
            title:'分数',
            align:"center",
            dataIndex: 'score'
          },
          {
            title: '操作',
            dataIndex: 'action',
            align:"center",
            fixed:"right",
            width:147,
            scopedSlots: { customRender: 'action' }
          }
        ],
        url: {
          list: "/items/kyglhxzb/list",
        },
        dictOptions:{},
        superFieldList:[],
        queryParam:{
          workNo:'',
          date: ''
        },
        disableMixinCreated: true,
      }
    },
    watch: {
      value: {
        immediate: true,
        handler(obj) {
          console.log(obj);
          this.dataSource = []
          if(obj.isLeaf){
            // console.log(obj);
            this.queryParam.workNo = obj.id
            this.queryParam.orgCode = obj.orgCode
          }
        }
      },
    },
    created() {
      this.queryParam.date = Vue.ls.get(CURRENT_DATE);
    },
    computed: {

    },
    methods: {}
  }
</script>
<style scoped>
  @import '~@assets/less/common.less';
</style>